﻿@page
@{ Layout = "_Layout"; }

<el-card class="box-card">
    <el-form :inline="true" :size="euiSize">
        <el-form-item label="">
            <el-button :size="euiSize" type="primary" style="margin-left: 0px;" icon="el-icon-plus" v-on:click="btnAddClick">
                新增角色
            </el-button>
        </el-form-item>
    </el-form>
<el-table
:data="roles" :size="euiSize" style="width: 100%" :height="($(window).height() - 115)">
  <el-table-column
    prop="roleName"
    label="角色名称">
  </el-table-column>
        <el-table-column width="130" label="创建人">
    <template slot-scope="scope">
      <el-button-group>
        <el-link :underline="false" type="primary" v-on:click="btnAdminViewClick(scope.row.createrId)">{{scope.row.createrName}}</el-link>
      </el-button-group>
    </template>
  </el-table-column>
  <el-table-column
    width="150"
    prop="createdDate"
    label="创建时间">
  </el-table-column>
  <el-table-column
    prop="description"
    label="备注">
  </el-table-column>
  <el-table-column width="169" align="right">
    <template slot-scope="scope">
      <el-button-group>
        <el-button
         type="primary" plain
          :size="euiSize"
          icon="el-icon-edit"
          v-on:click="btnEditClick(scope.row)">修改</el-button>
        <el-button :size="euiSize"
          type="danger"
          icon="el-icon-delete"
          v-on:click="btnDeleteClick(scope.row)">删除</el-button>
      </el-button-group>
    </template>
  </el-table-column>
   @await Html.PartialAsync("_PartialTableEmpty")
</el-table>
</el-card>

@section Scripts{
<script src="/sitefiles/assets/js/admin/settings/administratorsRole.js" type="text/javascript"></script> }